Repository navigation
Conversation
1. Added fallback condition to call initScreenLockedState() when platform name is non-empty, ensuring the function runs on Wayland as well 2. Previously skipped on Wayland only; now also handles empty platform name case that occurs in unit test environments 3. Marks intention for subsequent migration to the login1 interface Log: Expand screen lock initialization condition to work in unit test and Wayland environments fix(notification): 扩展屏幕锁定初始化条件以支持单元测试 1. 新增 platformName 非空时的回退条件,确保在 Wayland 上也能调用 initScreenLockedState() 2. 原先仅在 Wayland 时跳过;现在同时处理单元测试环境中 platformName 为空的情况 3. 标注了后续迁移至 login1 接口的意图 Log: 扩展屏幕锁定初始化条件,兼容单元测试和 Wayland 环境
1. Root cause: TaskOverflowButton used qsTr("Overflow area") for both
PanelToolTip text and Accessible.name, which displays as a technical
description rather than user-friendly text
2. Fix: change source string to qsTr("Show hidden icons") and update
zh_CN/zh_HK/zh_TW translations accordingly
3. Impact: hover tooltip on overflow area now shows correct text,
screen reader also reads the updated accessible name
Log: Fixed overflow area tooltip text to show hidden icons
Influence:
1. Test hovering over the overflow area button in taskbar
2. Verify tooltip displays "Show hidden icons" (显示隐藏图标)
3. Verify screen reader reads the updated accessible name
fix: 修正溢出区域按钮 tooltip 文案为显示隐藏图标
1. 根因:TaskOverflowButton 的 PanelToolTip 和 Accessible.name 均使用
qsTr("Overflow area"),展示为技术描述而非面向用户的功能文案
2. 方案:将源字符串改为 qsTr("Show hidden icons"),同步更新
zh_CN/zh_HK/zh_TW 翻译文件
3. 影响:溢出区域 hover tooltip 文案修正为"显示隐藏图标",
无障碍读屏名称同步更新
Log: 修正溢出区域 tooltip 文案为显示隐藏图标
Influence:
1. 测试鼠标 hover 任务栏溢出区域按钮
2. 验证 tooltip 显示"显示隐藏图标"
3. 验证无障碍读屏功能读取更新后的名称
PMS: BUG-384749
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideImplementationAdjust screen-lock initialization so it also runs when the platform name is empty, as in unit-test environments.
UIUpdate the overflow button’s tooltip and accessible name to say “Show hidden icons,” with the corresponding translation entries.
ConfigurationAdd a manually triggered and reusable workflow to generate a Debian changelog and optionally open a pull request.
Other changesFiles not grouped.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 6 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/notification/server/notificationmanager.cpp" line_range="85" />
<code_context>
}
- if (QStringLiteral("wayland") != QGuiApplication::platformName()) {
+ if (QStringLiteral("wayland") != QGuiApplication::platformName()
+ && !QGuiApplication::platformName().isEmpty()) { // for unit test, Subsequent migration to the login1 interface
initScreenLockedState();
}
</code_context>
<issue_to_address>
**Locked sessions are treated as unlocked**
When the platform name is `wayland` or empty, `initScreenLockedState()` does not run because the `&&` condition is false, leaving `m_screenLocked` false; notification routing then treats a locked session as a desktop session.
Change the condition so `initScreenLockedState()` runs for Wayland and empty platform names.
</issue_to_address>
### Comment 2
<location path=".github/workflows/update-changelog.yml" line_range="41" />
<code_context>
+ create_pr:
+ required: false
+ type: boolean
+ default: true
+ secrets:
+ APP_ID:
</code_context>
<issue_to_address>
**Default workflow calls fail without secrets**
When a reusable-workflow caller omits the optional app secrets and leaves `create_pr` at its default, the app-token step receives empty credentials and fails before changelog generation completes, so the caller gets no changelog output or artifact.
Default `create_pr` to false and run the app-token step only when PR creation is enabled.
Also at `.github/workflows/update-changelog.yml:44`, `.github/workflows/update-changelog.yml:46`.
</issue_to_address>
### Comment 3
<location path=".github/workflows/update-changelog.yml" line_range="254" />
<code_context>
+ - name: Create pull request
+ id: create_pr
+ if: ${{ inputs.create_pr }}
+ uses: peter-evans/create-pull-request@v6
+ with:
+ token: ${{ steps.app_token.outputs.token }}
</code_context>
<issue_to_address>
**PR targets the wrong branch**
When `base_branch` differs from the repository’s default branch and PR creation is enabled, `create-pull-request` defaults its base to the repository’s default branch because the step does not pass `base_branch`, so the generated PR targets the wrong branch.
Pass `${{ inputs.base_branch }}` as the `base` input to `create-pull-request`.
Also at `.github/workflows/update-changelog.yml:257`.
</issue_to_address>
### Comment 4
<location path=".github/workflows/update-changelog.yml" line_range="257" />
<code_context>
+ uses: peter-evans/create-pull-request@v6
+ with:
+ token: ${{ steps.app_token.outputs.token }}
+ branch: changelog/${{ steps.prepare.outputs.safe_version }}
+ title: "chore: update changelog to ${{ steps.prepare.outputs.version }}"
+ commit-message: "chore: update changelog to ${{ steps.prepare.outputs.version }}"
</code_context>
<issue_to_address>
**Older runs replace newer changelog contents**
When two changelog runs for the same version overlap and the older run pushes last, both runs push to the same version-derived branch, so the older run replaces the newer contents and the PR loses commit titles included only in the newer changelog.
Prevent overlapping runs for the same version from updating the shared branch, ensuring the newer changelog is the one that remains.
</issue_to_address>
### Comment 5
<location path=".github/workflows/update-changelog.yml" line_range="167" />
<code_context>
+
+ def commit_titles_since_changelog(owner, repo, base_branch, head_sha):
+ base_url = f"https://api.github.com/repos/{owner}/{repo}"
+ commits_url = f"{base_url}/commits?{urllib.parse.urlencode({'sha': base_branch, 'path': 'debian/changelog', 'per_page': 1})}"
+ commits, _ = github_get(commits_url)
+ if not commits:
</code_context>
<issue_to_address>
**Branch updates produce an empty changelog**
When the base branch advances with a changelog change after checkout but before the API query, the API query can return a changelog commit newer than the checked-out `head_sha`. `commit_titles_since_changelog` then compares that newer base against the older checkout, yielding no forward commit titles (or failing the compare); the workflow generates a release-only changelog or stops instead of including the commits.
Resolve the base branch to one commit SHA and use that same SHA for checkout and all changelog-history queries.
</issue_to_address>
### Comment 6
<location path="panels/dock/taskmanager/package/TaskOverflowButton.qml" line_range="13" />
<code_context>
+import org.deepin.ds.dock 1.0
+import org.deepin.dtk 1.0 as D
+
+Item {
+ id: root
+
</code_context>
<issue_to_address>
**New overflow labels never reach the dock**
When the dock task manager loads its existing overflow control, `TaskManager.qml` instantiates `OverflowContainer` instead of `TaskOverflowButton`, so the new tooltip and accessible name never reach the control users interact with and its text remains unchanged.
Use `TaskOverflowButton` for the task manager’s active overflow control.
Also at `panels/dock/taskmanager/package/TaskOverflowButton.qml:58`, `panels/dock/taskmanager/package/TaskOverflowButton.qml:211`.
</issue_to_address>| } | ||
| if (QStringLiteral("wayland") != QGuiApplication::platformName()) { | ||
| if (QStringLiteral("wayland") != QGuiApplication::platformName() | ||
| && !QGuiApplication::platformName().isEmpty()) { // for unit test, Subsequent migration to the login1 interface |
There was a problem hiding this comment.
🟡 Medium · Locked sessions are treated as unlocked
When the platform name is wayland or empty, initScreenLockedState() does not run because the && condition is false, leaving m_screenLocked false; notification routing then treats a locked session as a desktop session.
Change the condition so initScreenLockedState() runs for Wayland and empty platform names.
Prompt for AI agents
In `panels/notification/server/notificationmanager.cpp` at line 85:
**Locked sessions are treated as unlocked**
When the platform name is `wayland` or empty, `initScreenLockedState()` does not run because the `&&` condition is false, leaving `m_screenLocked` false; notification routing then treats a locked session as a desktop session.
Change the condition so `initScreenLockedState()` runs for Wayland and empty platform names.| create_pr: | ||
| required: false | ||
| type: boolean | ||
| default: true |
There was a problem hiding this comment.
🟡 Medium · Default workflow calls fail without secrets
When a reusable-workflow caller omits the optional app secrets and leaves create_pr at its default, the app-token step receives empty credentials and fails before changelog generation completes, so the caller gets no changelog output or artifact.
Default create_pr to false and run the app-token step only when PR creation is enabled.
Also at .github/workflows/update-changelog.yml:44, .github/workflows/update-changelog.yml:46.
Prompt for AI agents
In `.github/workflows/update-changelog.yml` at line 41:
**Default workflow calls fail without secrets**
When a reusable-workflow caller omits the optional app secrets and leaves `create_pr` at its default, the app-token step receives empty credentials and fails before changelog generation completes, so the caller gets no changelog output or artifact.
Default `create_pr` to false and run the app-token step only when PR creation is enabled.
Also at `.github/workflows/update-changelog.yml:44`, `.github/workflows/update-changelog.yml:46`.| - name: Create pull request | ||
| id: create_pr | ||
| if: ${{ inputs.create_pr }} | ||
| uses: peter-evans/create-pull-request@v6 |
There was a problem hiding this comment.
🟡 Medium · PR targets the wrong branch
When base_branch differs from the repository’s default branch and PR creation is enabled, create-pull-request defaults its base to the repository’s default branch because the step does not pass base_branch, so the generated PR targets the wrong branch.
Pass ${{ inputs.base_branch }} as the base input to create-pull-request.
Also at .github/workflows/update-changelog.yml:257.
Prompt for AI agents
In `.github/workflows/update-changelog.yml` at line 254:
**PR targets the wrong branch**
When `base_branch` differs from the repository’s default branch and PR creation is enabled, `create-pull-request` defaults its base to the repository’s default branch because the step does not pass `base_branch`, so the generated PR targets the wrong branch.
Pass `${{ inputs.base_branch }}` as the `base` input to `create-pull-request`.
Also at `.github/workflows/update-changelog.yml:257`.| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| token: ${{ steps.app_token.outputs.token }} | ||
| branch: changelog/${{ steps.prepare.outputs.safe_version }} |
There was a problem hiding this comment.
🟡 Medium · Older runs replace newer changelog contents
When two changelog runs for the same version overlap and the older run pushes last, both runs push to the same version-derived branch, so the older run replaces the newer contents and the PR loses commit titles included only in the newer changelog.
Prevent overlapping runs for the same version from updating the shared branch, ensuring the newer changelog is the one that remains.
Prompt for AI agents
In `.github/workflows/update-changelog.yml` at line 257:
**Older runs replace newer changelog contents**
When two changelog runs for the same version overlap and the older run pushes last, both runs push to the same version-derived branch, so the older run replaces the newer contents and the PR loses commit titles included only in the newer changelog.
Prevent overlapping runs for the same version from updating the shared branch, ensuring the newer changelog is the one that remains.|
|
||
| def commit_titles_since_changelog(owner, repo, base_branch, head_sha): | ||
| base_url = f"https://api.github.com/repos/{owner}/{repo}" | ||
| commits_url = f"{base_url}/commits?{urllib.parse.urlencode({'sha': base_branch, 'path': 'debian/changelog', 'per_page': 1})}" |
There was a problem hiding this comment.
🟡 Medium · Branch updates produce an empty changelog
When the base branch advances with a changelog change after checkout but before the API query, the API query can return a changelog commit newer than the checked-out head_sha. commit_titles_since_changelog then compares that newer base against the older checkout, yielding no forward commit titles (or failing the compare); the workflow generates a release-only changelog or stops instead of including the commits.
Resolve the base branch to one commit SHA and use that same SHA for checkout and all changelog-history queries.
Prompt for AI agents
In `.github/workflows/update-changelog.yml` at line 167:
**Branch updates produce an empty changelog**
When the base branch advances with a changelog change after checkout but before the API query, the API query can return a changelog commit newer than the checked-out `head_sha`. `commit_titles_since_changelog` then compares that newer base against the older checkout, yielding no forward commit titles (or failing the compare); the workflow generates a release-only changelog or stops instead of including the commits.
Resolve the base branch to one commit SHA and use that same SHA for checkout and all changelog-history queries.| import org.deepin.ds.dock 1.0 | ||
| import org.deepin.dtk 1.0 as D | ||
|
|
||
| Item { |
There was a problem hiding this comment.
🟠 High · New overflow labels never reach the dock
When the dock task manager loads its existing overflow control, TaskManager.qml instantiates OverflowContainer instead of TaskOverflowButton, so the new tooltip and accessible name never reach the control users interact with and its text remains unchanged.
Use TaskOverflowButton for the task manager’s active overflow control.
Also at panels/dock/taskmanager/package/TaskOverflowButton.qml:58, panels/dock/taskmanager/package/TaskOverflowButton.qml:211.
Prompt for AI agents
In `panels/dock/taskmanager/package/TaskOverflowButton.qml` at line 13:
**New overflow labels never reach the dock**
When the dock task manager loads its existing overflow control, `TaskManager.qml` instantiates `OverflowContainer` instead of `TaskOverflowButton`, so the new tooltip and accessible name never reach the control users interact with and its text remains unchanged.
Use `TaskOverflowButton` for the task manager’s active overflow control.
Also at `panels/dock/taskmanager/package/TaskOverflowButton.qml:58`, `panels/dock/taskmanager/package/TaskOverflowButton.qml:211`.
|
Root Cause Analysis
The overflow area button in the taskbar dock (
TaskOverflowButton.qml) usedqsTr("Overflow area")as the tooltip text and accessible name. This technical description does not match the expected user-facing text "Show hidden icons" (显示隐藏图标). The root cause is a single incorrect source string — introduced when the overflow button was first added incf0348bf(2026-11-10) — that propagates to both the hover tooltip (PanelToolTip.text) and the screen reader name (Accessible.name).Fix Approach
Change both occurrences of
qsTr("Overflow area")inTaskOverflowButton.qmltoqsTr("Show hidden icons"), and update the four translation files (template.ts+zh_CN/zh_HK/zh_TW) accordingly so the displayed text becomes "显示隐藏图标" / "顯示隱藏圖標" / "顯示隱藏圖示".Change Safety Assessment
Code Safety
qsTr()return value is consumed only for UI displayBusiness Impact Scope
The change affects the taskbar overflow area button tooltip and screen reader announcement. When users hover over the overflow button in the dock, the tooltip now displays "Show hidden icons" instead of "Overflow area". Screen reader users will hear the updated accessible name. No other functional modules are affected.
Verification Suggestion
Hover over the overflow area button in the taskbar dock and verify the tooltip shows "Show hidden icons" (显示隐藏图标). Verify screen reader reads the updated name. Test with zh_CN, zh_HK, and zh_TW locales.
根因分析
任务栏溢出区域按钮(
TaskOverflowButton.qml)使用qsTr("Overflow area")作为 tooltip 文案和无障碍名称。该技术描述性文案与期望的用户面向文案"显示隐藏图标"不符。根因为单一源字符串错误——在cf0348bf(2026-11-10)首次引入溢出按钮时即使用了该占位文案——同时影响 hover tooltip(PanelToolTip.text)和读屏名称(Accessible.name)。修复方案
将
TaskOverflowButton.qml中两处qsTr("Overflow area")改为qsTr("Show hidden icons"),并同步更新 4 个翻译文件(模板.ts+zh_CN/zh_HK/zh_TW),使显示文案变为"显示隐藏图标"/"顯示隱藏圖標"/"顯示隱藏圖示"。改动安全评估
代码安全评估
qsTr()返回值仅用于 UI 展示业务影响范围
本次改动影响任务栏溢出区域按钮的 tooltip 和无障碍读屏名称。用户 hover 溢出区域按钮时,tooltip 将显示"显示隐藏图标"而非"溢出区域"。读屏用户将听到更新后的无障碍名称。不影响其他功能模块。
验证建议
鼠标 hover 任务栏溢出区域按钮,验证 tooltip 显示"显示隐藏图标"。验证读屏功能读取更新后的名称。分别在 zh_CN、zh_HK、zh_TW 语言环境下测试。
PMS: BUG-384749
Summary by Sourcery
Improve taskbar overflow accessibility and notification initialization while adding automated changelog generation and updated localization coverage.
New Features:
Bug Fixes:
Enhancements:
CI: